/**
 * @author wn
 * @date 2023/10/19 11:06:10
 * @description: 个人中心 API 接口
 */

import { request } from '@/utils/request'

enum Url {
	Url = '/member/profile',
}

/**
 * 获取个人信息
 * @returns Promise
 */
export const getMemberProfileApi = () =>
	request<Profile>({
		method: 'GET',
		url: Url.Url,
	})

/**
 * 修改个人信息
 * @returns Promise
 */
export const putMemberProfileApi = (data: ProfileParams) =>
	request<Profile>({
		method: 'PUT',
		url: Url.Url,
		data,
	})
